import unittest
from htmltestreport import HTMLTestReport
from config import BASE_PATH

if __name__ == '__main__':
    suite = unittest.defaultTestLoader.discover(BASE_PATH + "/scripts")
    # runner = unittest.TextTestRunner()
    # runner.run(suite)
    report_path = BASE_PATH + '/report/p2p.html'
    runner = HTMLTestReport(report_path,title="p2p测试报告")
    runner.run(suite)